package com.example.fall_guard_band.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("device")
public class Device {

    @TableId(value = "device_id")
    private String deviceId;

    @TableField("name")
    private String name;

    @TableField("type")
    private String type;

    @TableField("status")
    private Integer status;

    @TableField("elderly_id")
    private Long elderlyId;

    @TableField("last_heartbeat")
    private LocalDateTime lastHeartbeat;

    @TableField("firmware_version")
    private String firmwareVersion;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;
}